package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mapper.DocumentMapper;
import com.model.Document;
import com.vto.ScoreVTO;

@Service
public class DocumentServiceImpl implements DocumentService {

	@Autowired
	private DocumentMapper documentMapper;
	@Override
	public List<Document> queryList() {
		return documentMapper.findList();
	}
	@Override
	public int insert(Document document) {
		return documentMapper.insert(document);
	}

	@Override
	public Document queryById(Integer id) {
		return documentMapper.queryById(id);
	}
	@Override
	public List<ScoreVTO> queryScoreList(Integer cid) {
		return documentMapper.queryScoreList(cid);
	}

}
